<script setup>
import Aside from '../components/aside.vue';
import Header from '../components/navHeader.vue';
</script>

<template>
  <div class="common-layout">
    <el-container class="main-container">
      <Aside />
      <el-container class="right-container">
        <el-header>
          <Header />
        </el-header>
        <el-main>
          <RouterView />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style lang="less" scoped>
.common-layout {
  height: 100%;
  .main-container {
    height: 100%;
  }
  .right-container {
    flex-direction: column; // 确保右侧容器是垂直排列
  }
  .el-header {
    padding: 0;
    height: auto;
  }
  .el-main {
    padding: 0;
  }
}
</style>
